// dlg.txt

//		mark_quest_dest(zone,x,y,layer,quest);
//		cancel_out_fight(0,short kill_enc);
//		make_outdoor_enc(short x,short y,short which_enc);
//		set_out_fight_field(short which_field);
// 				which_field is 0-20

begintalkscript;

variables;

short this_sec = 31;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "The ground slopes upward to the north. The farther up you get, the larger nature gets. Bigger trees. Bigger bushes. Massive squirrels. At last, you are getting close to the heart of the woods. The deepest part, with the strongest natural magic.";
	text2 = "Yet, something is wrong. You hit a wall of icy air. Soon, snow is crunching underfoot. It is painfully cold. Normally, there would be a line of pilgrims and druids coming up here. Everyone is gone.";
	text3 = "The grove ahead is Tehrorman, heart of the woods, with power even Haven must respect. Already, it is hitting you with its rage.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "When you get close to the ruin, the wolves suddenly pour out. As you prepare to defend yourself, you hear snarling behind you. More of the beasts have run down from the hills. There are a lot of them.";
	code =
		set_out_fight_field(10);
	break;
		
begintalknode;
	tag = 14;
	condition = 1;
	text1 = "Now that the vicious pack has been defeated, you search the ruin. Wolves don't really care about money, but the victims they dragged here had some wealth.";
	text2 = "You find assortment of coins and jewelry, and a bone scroll tube.";
	code =	
		change_coins(31,1);
		reward_give(405);
	break;

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "As you get farther north, the forest grows colder and more menacing. Thus, it is not a surprise when a few trees lurch toward you, wanting to eat you.";
	text2 = "Then they crumble into splinters. Then dust. The power of the groves that kept these monstrosities alive has faded.";
	code =
		if (gf(129,11) > 0) 
			cancel_out_fight(0,1);
			else rs(2);
	break;
	
begintalknode;
	tag = 16;
	condition = 1;
	text1 = "You see a group of druids, walking along the road and carefully examining the flora. They are concerned.";
	text2 = "As soon as they see you, they disappear into the undergrowth. The plants swallow them up without a trace.";
	code =
		cancel_out_fight(0,1);
	break;

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = gf(131,11) == 0;
	question = "Name";
	text1 = "You find a stone ruin. It's been abandoned for a long time. You have no idea who settled here or why.";
	text2 = "You have no trouble identifying its current residents, though. You can see massive wolves wandering around inside the crumbling walls. They pick up your scent immediately. One of them pokes its head over the wall to see you.";
	text3 = "They watch you approach, but they're smart enough to not challenge you. They stay inside their den.";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Attack.";
	text1 = "The wolves watch as you draw your blade and approach.";
	action = END_TALK;
	code =
		sf(131,11,1);
		make_outdoor_enc(84,163,0);
	break;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Leave.";
	text1 = "They watch as you peacefully withdraw.";
	action = END_TALK;

//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = "You meet a band of Rokaj warriors. Not from the Kranas, though. They are tall, thin, and wear heavy leather clothes. They nod when you get close.";
	text2 = "They don't want to talk to you, but they don't want to be rude either.";
	code =
		cancel_out_fight(0,1);
	break;
	
begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Talk to them.";
	text1 = "It's a short conversation. They say they are heading east, to the Arena. When you ask about it, they say it's _Not for you._ When you ask why they are going, they say, _For glory._";
	text2 = "After a few more pleasantries, they leave, heading east.";
	action = END_TALK;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "Just let them go.";
	text1 = "They raise their weapons in a sort of salute. Then they hike off toward some ruins to the east.";
	action = END_TALK;

//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				